package com.at.abc.r411;

import java.io.*;

public class a {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out);
        String p = br.readLine();
        int l = Integer.parseInt(br.readLine());
        if (p.length() >= l) {
            out.println("Yes");
        } else {
            out.println("No");
        }
        out.flush();
        out.close();
        br.close();
    }
}
